package com.zn.web.dto;

import java.util.Date;

/**
 * Created by admintrator on 2019/1/3.
 */
public class AppCustomerDto {

    /**
     * 客户ID
     */
    private String customerId;

    /**
     * 文章类型ID
     */
    private String informationTypeId;

    private String informationSource;

    private String code;

    /**
     * 创建时间
     */
    private String createTime;

    private Integer	pageNum = 0;// 当前页码
    private Integer pageSize = 20;// 当前页条数

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getInformationTypeId() {
        return informationTypeId;
    }

    public void setInformationTypeId(String informationTypeId) {
        this.informationTypeId = informationTypeId;
    }

    public String getInformationSource() {
        return informationSource;
    }

    public void setInformationSource(String informationSource) {
        this.informationSource = informationSource;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getPageNum() {
        return pageNum;
    }
    public void setPageNum(Integer pageNum) {
        if(pageNum != null && pageNum >=1){// 当前页
            this.pageNum = (pageNum - 1 )*20;
        }else{
            this.pageNum = pageNum;
        }

    }
    public Integer getPageSize() {
        return pageSize;
    }
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "AppCustomerDto{" +
                "customerId='" + customerId + '\'' +
                ", informationTypeId='" + informationTypeId + '\'' +
                ", informationSource='" + informationSource + '\'' +
                ", code='" + code + '\'' +
                ", createTime='" + createTime + '\'' +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                '}';
    }
}
